#include "bluetooth_board.h"

void BluetoothGetMacAddress(uint8_t *pMacOut)
{
  uint8_t MacAddr[MAC_ADDR_CODING_LENGTH] = {0};

  if (pMacOut != NULL)
  {
    GetMACAddress(MacAddr);
    for (uint8_t i = 0; i < MAC_ADDR_CODING_LENGTH; i++)
    {
      pMacOut[i] = MacAddr[(MAC_ADDR_CODING_LENGTH - 1) - i];
    }
  }
}

uint8_t BluetoothGetDeviceType(void)
{
  return 0;
}

uint8_t BluetoothGetSystemStatus(void)
{
  return 0;
}

void BluetoothGetRadioName(void *pNameOut)
{
  memcpy(pNameOut, BLUETOOTH_DEFAULT_RADIO_NAME, strlen(BLUETOOTH_DEFAULT_RADIO_NAME));
}

uint8_t BluetoothGetProtocolVersion(void)
{
  return 1;
}

uint16_t BluetoothGetConnectTimeout(void)
{
  return BLUETOOTH_CONNECTION_TIMEOUT;
}

uint16_t BluetoothGetBroadcastInterval(void)
{
  return BLUETOOTH_BROADCAST_INTERVAL;
}

void BluetoothAnalysisServerPushMessage(const void *pMessage)
{
}
